<template>
	<view class="content">
		<button @click="tui">推流</button>
		<button @click="la">拉流</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
			// this.login();
		},
		methods: {
			login(){
				console.log(this.tim.login)
				// let promise = this.webim.login({userID: '1000', userSig: ''});
				// promise.then(function(imResponse) {
				//   console.log(imResponse.data); // 登录成功
				// }).catch(function(imError) {
				//   console.warn('login error:', imError); // 登录失败的相关信息
				// });
			},
			tui(){
				uni.navigateTo({
					url:'../openZhibo/index'
				})
			},
			la(){
				uni.navigateTo({
					url:'../la2/index'
				})
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
